package qldc.pm.tienan.model;

import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.DateUtil;
import com.liferay.portal.kernel.util.ProxyUtil;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.model.impl.BaseModelImpl;
import com.liferay.portal.util.PortalUtil;

import qldc.pm.tienan.service.ClpSerializer;
import qldc.pm.tienan.service.TEMP_PhieuThongTinVeNguoiCoTienAnLocalServiceUtil;

import java.io.Serializable;

import java.lang.reflect.Method;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;


public class TEMP_PhieuThongTinVeNguoiCoTienAnClp extends BaseModelImpl<TEMP_PhieuThongTinVeNguoiCoTienAn>
    implements TEMP_PhieuThongTinVeNguoiCoTienAn {
    private long _phieuThongTinVeNguoiCoTienAnId;
    private long _userId;
    private String _userUuid;
    private String _userName;
    private Date _createDate;
    private Date _modifiedDate;
    private long _tienAnId;
    private String _maSoHoSoTienAnTuToaAn;
    private String _nguoiTrichLuc;
    private String _thamPhan;
    private String _soDinhDanhCaNhan;
    private String _chuThich;
    private String _noiTamTruDiaChi;
    private String _noiThuongTruDiaChi;
    private String _hoTenVoHoacChong;
    private String _hoTenCha;
    private String _hoTenMe;
    private BaseModel<?> _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel;

    public TEMP_PhieuThongTinVeNguoiCoTienAnClp() {
    }

    @Override
    public Class<?> getModelClass() {
        return TEMP_PhieuThongTinVeNguoiCoTienAn.class;
    }

    @Override
    public String getModelClassName() {
        return TEMP_PhieuThongTinVeNguoiCoTienAn.class.getName();
    }

    @Override
    public long getPrimaryKey() {
        return _phieuThongTinVeNguoiCoTienAnId;
    }

    @Override
    public void setPrimaryKey(long primaryKey) {
        setPhieuThongTinVeNguoiCoTienAnId(primaryKey);
    }

    @Override
    public Serializable getPrimaryKeyObj() {
        return _phieuThongTinVeNguoiCoTienAnId;
    }

    @Override
    public void setPrimaryKeyObj(Serializable primaryKeyObj) {
        setPrimaryKey(((Long) primaryKeyObj).longValue());
    }

    @Override
    public Map<String, Object> getModelAttributes() {
        Map<String, Object> attributes = new HashMap<String, Object>();

        attributes.put("phieuThongTinVeNguoiCoTienAnId",
            getPhieuThongTinVeNguoiCoTienAnId());
        attributes.put("userId", getUserId());
        attributes.put("userName", getUserName());
        attributes.put("createDate", getCreateDate());
        attributes.put("modifiedDate", getModifiedDate());
        attributes.put("tienAnId", getTienAnId());
        attributes.put("maSoHoSoTienAnTuToaAn", getMaSoHoSoTienAnTuToaAn());
        attributes.put("nguoiTrichLuc", getNguoiTrichLuc());
        attributes.put("thamPhan", getThamPhan());
        attributes.put("soDinhDanhCaNhan", getSoDinhDanhCaNhan());
        attributes.put("chuThich", getChuThich());
        attributes.put("noiTamTruDiaChi", getNoiTamTruDiaChi());
        attributes.put("noiThuongTruDiaChi", getNoiThuongTruDiaChi());
        attributes.put("hoTenVoHoacChong", getHoTenVoHoacChong());
        attributes.put("hoTenCha", getHoTenCha());
        attributes.put("hoTenMe", getHoTenMe());

        return attributes;
    }

    @Override
    public void setModelAttributes(Map<String, Object> attributes) {
        Long phieuThongTinVeNguoiCoTienAnId = (Long) attributes.get(
                "phieuThongTinVeNguoiCoTienAnId");

        if (phieuThongTinVeNguoiCoTienAnId != null) {
            setPhieuThongTinVeNguoiCoTienAnId(phieuThongTinVeNguoiCoTienAnId);
        }

        Long userId = (Long) attributes.get("userId");

        if (userId != null) {
            setUserId(userId);
        }

        String userName = (String) attributes.get("userName");

        if (userName != null) {
            setUserName(userName);
        }

        Date createDate = (Date) attributes.get("createDate");

        if (createDate != null) {
            setCreateDate(createDate);
        }

        Date modifiedDate = (Date) attributes.get("modifiedDate");

        if (modifiedDate != null) {
            setModifiedDate(modifiedDate);
        }

        Long tienAnId = (Long) attributes.get("tienAnId");

        if (tienAnId != null) {
            setTienAnId(tienAnId);
        }

        String maSoHoSoTienAnTuToaAn = (String) attributes.get(
                "maSoHoSoTienAnTuToaAn");

        if (maSoHoSoTienAnTuToaAn != null) {
            setMaSoHoSoTienAnTuToaAn(maSoHoSoTienAnTuToaAn);
        }

        String nguoiTrichLuc = (String) attributes.get("nguoiTrichLuc");

        if (nguoiTrichLuc != null) {
            setNguoiTrichLuc(nguoiTrichLuc);
        }

        String thamPhan = (String) attributes.get("thamPhan");

        if (thamPhan != null) {
            setThamPhan(thamPhan);
        }

        String soDinhDanhCaNhan = (String) attributes.get("soDinhDanhCaNhan");

        if (soDinhDanhCaNhan != null) {
            setSoDinhDanhCaNhan(soDinhDanhCaNhan);
        }

        String chuThich = (String) attributes.get("chuThich");

        if (chuThich != null) {
            setChuThich(chuThich);
        }

        String noiTamTruDiaChi = (String) attributes.get("noiTamTruDiaChi");

        if (noiTamTruDiaChi != null) {
            setNoiTamTruDiaChi(noiTamTruDiaChi);
        }

        String noiThuongTruDiaChi = (String) attributes.get(
                "noiThuongTruDiaChi");

        if (noiThuongTruDiaChi != null) {
            setNoiThuongTruDiaChi(noiThuongTruDiaChi);
        }

        String hoTenVoHoacChong = (String) attributes.get("hoTenVoHoacChong");

        if (hoTenVoHoacChong != null) {
            setHoTenVoHoacChong(hoTenVoHoacChong);
        }

        String hoTenCha = (String) attributes.get("hoTenCha");

        if (hoTenCha != null) {
            setHoTenCha(hoTenCha);
        }

        String hoTenMe = (String) attributes.get("hoTenMe");

        if (hoTenMe != null) {
            setHoTenMe(hoTenMe);
        }
    }

    @Override
    public long getPhieuThongTinVeNguoiCoTienAnId() {
        return _phieuThongTinVeNguoiCoTienAnId;
    }

    @Override
    public void setPhieuThongTinVeNguoiCoTienAnId(
        long phieuThongTinVeNguoiCoTienAnId) {
        _phieuThongTinVeNguoiCoTienAnId = phieuThongTinVeNguoiCoTienAnId;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setPhieuThongTinVeNguoiCoTienAnId",
                        long.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    phieuThongTinVeNguoiCoTienAnId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getUserId() {
        return _userId;
    }

    @Override
    public void setUserId(long userId) {
        _userId = userId;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setUserId", long.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    userId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getUserUuid() throws SystemException {
        return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
    }

    @Override
    public void setUserUuid(String userUuid) {
        _userUuid = userUuid;
    }

    @Override
    public String getUserName() {
        return _userName;
    }

    @Override
    public void setUserName(String userName) {
        _userName = userName;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setUserName", String.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    userName);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getCreateDate() {
        return _createDate;
    }

    @Override
    public void setCreateDate(Date createDate) {
        _createDate = createDate;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setCreateDate", Date.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    createDate);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getModifiedDate() {
        return _modifiedDate;
    }

    @Override
    public void setModifiedDate(Date modifiedDate) {
        _modifiedDate = modifiedDate;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setModifiedDate", Date.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    modifiedDate);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getTienAnId() {
        return _tienAnId;
    }

    @Override
    public void setTienAnId(long tienAnId) {
        _tienAnId = tienAnId;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setTienAnId", long.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    tienAnId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getMaSoHoSoTienAnTuToaAn() {
        return _maSoHoSoTienAnTuToaAn;
    }

    @Override
    public void setMaSoHoSoTienAnTuToaAn(String maSoHoSoTienAnTuToaAn) {
        _maSoHoSoTienAnTuToaAn = maSoHoSoTienAnTuToaAn;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setMaSoHoSoTienAnTuToaAn",
                        String.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    maSoHoSoTienAnTuToaAn);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getNguoiTrichLuc() {
        return _nguoiTrichLuc;
    }

    @Override
    public void setNguoiTrichLuc(String nguoiTrichLuc) {
        _nguoiTrichLuc = nguoiTrichLuc;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setNguoiTrichLuc", String.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    nguoiTrichLuc);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getThamPhan() {
        return _thamPhan;
    }

    @Override
    public void setThamPhan(String thamPhan) {
        _thamPhan = thamPhan;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setThamPhan", String.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    thamPhan);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getSoDinhDanhCaNhan() {
        return _soDinhDanhCaNhan;
    }

    @Override
    public void setSoDinhDanhCaNhan(String soDinhDanhCaNhan) {
        _soDinhDanhCaNhan = soDinhDanhCaNhan;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setSoDinhDanhCaNhan",
                        String.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    soDinhDanhCaNhan);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getChuThich() {
        return _chuThich;
    }

    @Override
    public void setChuThich(String chuThich) {
        _chuThich = chuThich;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setChuThich", String.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    chuThich);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getNoiTamTruDiaChi() {
        return _noiTamTruDiaChi;
    }

    @Override
    public void setNoiTamTruDiaChi(String noiTamTruDiaChi) {
        _noiTamTruDiaChi = noiTamTruDiaChi;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiTamTruDiaChi",
                        String.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    noiTamTruDiaChi);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getNoiThuongTruDiaChi() {
        return _noiThuongTruDiaChi;
    }

    @Override
    public void setNoiThuongTruDiaChi(String noiThuongTruDiaChi) {
        _noiThuongTruDiaChi = noiThuongTruDiaChi;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setNoiThuongTruDiaChi",
                        String.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    noiThuongTruDiaChi);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHoTenVoHoacChong() {
        return _hoTenVoHoacChong;
    }

    @Override
    public void setHoTenVoHoacChong(String hoTenVoHoacChong) {
        _hoTenVoHoacChong = hoTenVoHoacChong;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setHoTenVoHoacChong",
                        String.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    hoTenVoHoacChong);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHoTenCha() {
        return _hoTenCha;
    }

    @Override
    public void setHoTenCha(String hoTenCha) {
        _hoTenCha = hoTenCha;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setHoTenCha", String.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    hoTenCha);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHoTenMe() {
        return _hoTenMe;
    }

    @Override
    public void setHoTenMe(String hoTenMe) {
        _hoTenMe = hoTenMe;

        if (_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel != null) {
            try {
                Class<?> clazz = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

                Method method = clazz.getMethod("setHoTenMe", String.class);

                method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                    hoTenMe);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    public BaseModel<?> getTEMP_PhieuThongTinVeNguoiCoTienAnRemoteModel() {
        return _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel;
    }

    public void setTEMP_PhieuThongTinVeNguoiCoTienAnRemoteModel(
        BaseModel<?> temp_PhieuThongTinVeNguoiCoTienAnRemoteModel) {
        _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel = temp_PhieuThongTinVeNguoiCoTienAnRemoteModel;
    }

    public Object invokeOnRemoteModel(String methodName,
        Class<?>[] parameterTypes, Object[] parameterValues)
        throws Exception {
        Object[] remoteParameterValues = new Object[parameterValues.length];

        for (int i = 0; i < parameterValues.length; i++) {
            if (parameterValues[i] != null) {
                remoteParameterValues[i] = ClpSerializer.translateInput(parameterValues[i]);
            }
        }

        Class<?> remoteModelClass = _temp_PhieuThongTinVeNguoiCoTienAnRemoteModel.getClass();

        ClassLoader remoteModelClassLoader = remoteModelClass.getClassLoader();

        Class<?>[] remoteParameterTypes = new Class[parameterTypes.length];

        for (int i = 0; i < parameterTypes.length; i++) {
            if (parameterTypes[i].isPrimitive()) {
                remoteParameterTypes[i] = parameterTypes[i];
            } else {
                String parameterTypeName = parameterTypes[i].getName();

                remoteParameterTypes[i] = remoteModelClassLoader.loadClass(parameterTypeName);
            }
        }

        Method method = remoteModelClass.getMethod(methodName,
                remoteParameterTypes);

        Object returnValue = method.invoke(_temp_PhieuThongTinVeNguoiCoTienAnRemoteModel,
                remoteParameterValues);

        if (returnValue != null) {
            returnValue = ClpSerializer.translateOutput(returnValue);
        }

        return returnValue;
    }

    @Override
    public void persist() throws SystemException {
        if (this.isNew()) {
            TEMP_PhieuThongTinVeNguoiCoTienAnLocalServiceUtil.addTEMP_PhieuThongTinVeNguoiCoTienAn(this);
        } else {
            TEMP_PhieuThongTinVeNguoiCoTienAnLocalServiceUtil.updateTEMP_PhieuThongTinVeNguoiCoTienAn(this);
        }
    }

    @Override
    public TEMP_PhieuThongTinVeNguoiCoTienAn toEscapedModel() {
        return (TEMP_PhieuThongTinVeNguoiCoTienAn) ProxyUtil.newProxyInstance(TEMP_PhieuThongTinVeNguoiCoTienAn.class.getClassLoader(),
            new Class[] { TEMP_PhieuThongTinVeNguoiCoTienAn.class },
            new AutoEscapeBeanHandler(this));
    }

    @Override
    public Object clone() {
        TEMP_PhieuThongTinVeNguoiCoTienAnClp clone = new TEMP_PhieuThongTinVeNguoiCoTienAnClp();

        clone.setPhieuThongTinVeNguoiCoTienAnId(getPhieuThongTinVeNguoiCoTienAnId());
        clone.setUserId(getUserId());
        clone.setUserName(getUserName());
        clone.setCreateDate(getCreateDate());
        clone.setModifiedDate(getModifiedDate());
        clone.setTienAnId(getTienAnId());
        clone.setMaSoHoSoTienAnTuToaAn(getMaSoHoSoTienAnTuToaAn());
        clone.setNguoiTrichLuc(getNguoiTrichLuc());
        clone.setThamPhan(getThamPhan());
        clone.setSoDinhDanhCaNhan(getSoDinhDanhCaNhan());
        clone.setChuThich(getChuThich());
        clone.setNoiTamTruDiaChi(getNoiTamTruDiaChi());
        clone.setNoiThuongTruDiaChi(getNoiThuongTruDiaChi());
        clone.setHoTenVoHoacChong(getHoTenVoHoacChong());
        clone.setHoTenCha(getHoTenCha());
        clone.setHoTenMe(getHoTenMe());

        return clone;
    }

    @Override
    public int compareTo(
        TEMP_PhieuThongTinVeNguoiCoTienAn temp_PhieuThongTinVeNguoiCoTienAn) {
        int value = 0;

        value = DateUtil.compareTo(getCreateDate(),
                temp_PhieuThongTinVeNguoiCoTienAn.getCreateDate());

        value = value * -1;

        if (value != 0) {
            return value;
        }

        return 0;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }

        if (!(obj instanceof TEMP_PhieuThongTinVeNguoiCoTienAnClp)) {
            return false;
        }

        TEMP_PhieuThongTinVeNguoiCoTienAnClp temp_PhieuThongTinVeNguoiCoTienAn = (TEMP_PhieuThongTinVeNguoiCoTienAnClp) obj;

        long primaryKey = temp_PhieuThongTinVeNguoiCoTienAn.getPrimaryKey();

        if (getPrimaryKey() == primaryKey) {
            return true;
        } else {
            return false;
        }
    }

    @Override
    public int hashCode() {
        return (int) getPrimaryKey();
    }

    @Override
    public String toString() {
        StringBundler sb = new StringBundler(33);

        sb.append("{phieuThongTinVeNguoiCoTienAnId=");
        sb.append(getPhieuThongTinVeNguoiCoTienAnId());
        sb.append(", userId=");
        sb.append(getUserId());
        sb.append(", userName=");
        sb.append(getUserName());
        sb.append(", createDate=");
        sb.append(getCreateDate());
        sb.append(", modifiedDate=");
        sb.append(getModifiedDate());
        sb.append(", tienAnId=");
        sb.append(getTienAnId());
        sb.append(", maSoHoSoTienAnTuToaAn=");
        sb.append(getMaSoHoSoTienAnTuToaAn());
        sb.append(", nguoiTrichLuc=");
        sb.append(getNguoiTrichLuc());
        sb.append(", thamPhan=");
        sb.append(getThamPhan());
        sb.append(", soDinhDanhCaNhan=");
        sb.append(getSoDinhDanhCaNhan());
        sb.append(", chuThich=");
        sb.append(getChuThich());
        sb.append(", noiTamTruDiaChi=");
        sb.append(getNoiTamTruDiaChi());
        sb.append(", noiThuongTruDiaChi=");
        sb.append(getNoiThuongTruDiaChi());
        sb.append(", hoTenVoHoacChong=");
        sb.append(getHoTenVoHoacChong());
        sb.append(", hoTenCha=");
        sb.append(getHoTenCha());
        sb.append(", hoTenMe=");
        sb.append(getHoTenMe());
        sb.append("}");

        return sb.toString();
    }

    @Override
    public String toXmlString() {
        StringBundler sb = new StringBundler(52);

        sb.append("<model><model-name>");
        sb.append("qldc.pm.tienan.model.TEMP_PhieuThongTinVeNguoiCoTienAn");
        sb.append("</model-name>");

        sb.append(
            "<column><column-name>phieuThongTinVeNguoiCoTienAnId</column-name><column-value><![CDATA[");
        sb.append(getPhieuThongTinVeNguoiCoTienAnId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>userId</column-name><column-value><![CDATA[");
        sb.append(getUserId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>userName</column-name><column-value><![CDATA[");
        sb.append(getUserName());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>createDate</column-name><column-value><![CDATA[");
        sb.append(getCreateDate());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
        sb.append(getModifiedDate());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>tienAnId</column-name><column-value><![CDATA[");
        sb.append(getTienAnId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>maSoHoSoTienAnTuToaAn</column-name><column-value><![CDATA[");
        sb.append(getMaSoHoSoTienAnTuToaAn());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>nguoiTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNguoiTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>thamPhan</column-name><column-value><![CDATA[");
        sb.append(getThamPhan());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>soDinhDanhCaNhan</column-name><column-value><![CDATA[");
        sb.append(getSoDinhDanhCaNhan());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>chuThich</column-name><column-value><![CDATA[");
        sb.append(getChuThich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiTamTruDiaChi</column-name><column-value><![CDATA[");
        sb.append(getNoiTamTruDiaChi());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiThuongTruDiaChi</column-name><column-value><![CDATA[");
        sb.append(getNoiThuongTruDiaChi());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoTenVoHoacChong</column-name><column-value><![CDATA[");
        sb.append(getHoTenVoHoacChong());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoTenCha</column-name><column-value><![CDATA[");
        sb.append(getHoTenCha());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoTenMe</column-name><column-value><![CDATA[");
        sb.append(getHoTenMe());
        sb.append("]]></column-value></column>");

        sb.append("</model>");

        return sb.toString();
    }
}
